<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<%@include file="/WEB-INF/jsp/includes/common.jsp" %>
	<%@include file="/WEB-INF/jsp/includes/head.jsp" %>
</head>
<body>
	<div id="app-act" class="app-act">
		<jsp:include page="/WEB-INF/jsp/includes/nav.jsp" flush="false">
			<jsp:param value="false" name="activityFlag"/>
			<jsp:param value="false" name="drawFlag"/>
		</jsp:include>
		<div id="myQiangba">
			<!-- begin update -->
			<div class="mod-wrapper">
				<div class="mod-hd mb10">
					<div class="top-box">
						<img src="${resUrlPrefix }/images/top.jpg" width="770" height="156" />
					</div>
				</div>
				<div class="mod-bd">
					<div class="content">
						<div class="my-qiangba">
						<c:if test="${loginFlag }">
							<div class="list-item">
								<c:if test="${page.total>0}">
										<div class="item-title">
											<h3>奖品列表</h3>
										</div>
								<nad:table dataList="${page.dataList}">
									<nad:row>
										<div class="item-cont clearfix hover">
											<div class="cont-left fl">
											
												<p class="img-wrapper">
													<img src='${image}' />
												</p>
												<p class="img-name" title="${awardName }"><nad:col name="awardName"/></p>
											</div>
											<div class="cont-right">
												<div class="active-name">
													<span class="fr">奖品类型：
													<em>
														<c:if test='${type==1}'>
															实物奖品
														</c:if>
														<c:if test='${type==2}'>
															虚拟奖品
														</c:if>
													</em>
													</span>
													<h5><span><nad:col name="activeName"/></span></h5>
												</div>
													<div class="award-info">
														<c:if test='${type==2}'>
														<p>
															<c:if test="${url != null && url != ''}">
																<a href="${url}" class="fr qb-link3" target="_blank">使用地址</a>
															</c:if>
															<label>卡&nbsp;&nbsp;&nbsp;&nbsp; 号：</label>
															<span><nad:col name="cardNo"/></span>
														</p>
														<p>
															<c:if test="${memo != null && url != ''}">
																<a href="javascript:void(0);" class="award-discribe-link fr qb-link4">使用说明</a>
															</c:if>
															<c:if test="${cardPwd != null}">
															<label>密&nbsp;&nbsp;&nbsp;&nbsp; 码：</label>
															<span><nad:col name="cardPwd"/></span>
														</c:if>
														</p>
														</c:if>
														<c:if test='${type==1}'>
															<p>
																<label>收货地址：</label>
																<span>
																<c:if test="${address != null}">
																	${address}
																</c:if>
																<c:if test="${address == null }">
																	无
																</c:if>
																</span>
															</p>
															<p>
																<label>收&nbsp; 货&nbsp; 人：</label>
																<span>
																<c:if test="${realName != null }">
																	${realName}
																</c:if>
																<c:if test="${realName == null }">
																	无
																</c:if>
																</span>
															</p>
														</c:if>
														<p>
															<label>获奖时间：</label>
															<span class="time"><nad:col name="winTime" format="yyyy-MM-dd HH:mm:ss"/></span>
														</p>
													</div>

											</div>
										</div>
									<!-- dialog 使用说明 -->
									<div class="award-discribe-box" id="awardDiscribeBox" style="display: none;">
										<div class="award-disc">
											<div class="article">${memo}</div>
										</div>
									</div>
									</nad:row>
									</nad:table>
									</c:if>
								<c:if test="${page.total<=0}">
									<div class="no-data">
                                             <span>你还没有获得什么奖品哦，赶紧去抢吧参加抽奖吧！<a href="${postUrlPrefix }activity/index.do?pageOrder=pageActive">马上去试！</a></span>
                                    		</div>
								</c:if>
							</div>
						</c:if>
						<c:if test="${!loginFlag }">
						
							<script>
								window.location.href="${postUrlPrefix}" + "activity/index.do?pageOrder=pageActive";
							</script>
						</c:if>
							<div class="mod-ft clearfix">
							<div class="mod-page-bar fr cb" id="activitiesPager">
								<c:if test="${page.total > 5 }">
									<nad:pagebar page="${page }" bar="${bar }" action="${postUrlPrefix }myqiangba/index.do" />
								</c:if>
							</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<script src="${resUrlPrefix }js/myqiangba.js"></script>
			<!-- end update -->
		</div>
	</div>
	
</body>
</html>